import request from '@/utils/request'
// 员工名字
export function getEmployeeSimple() {
  return request({
    url: '/sys/user/simple',
    method: 'get'
  })
}
// 全部员工
export function getEmployeeList(page, size) {
  return request({
    url: '/sys/user',
    method: 'get',
    params: { page, size }
  })
}
// 删除
export function delEmployee(id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`
  })
}
// 新增
export function AddEmployee(data) {
  return request({
    method: 'POST',
    url: `/sys/user`,
    data
  })
}
